<admintpl file="apiheader"/>
<title>赛程信息修改</title>
<body class="J_scroll_fixed" onselectstart="return false">
<style>
.table_list{margin: 20px;}
.span13{margin: 0px;}
.btnclick{width: 27px;}
.inpwidth{width: 50px;}
.deswidth{width: 120px;}
</style>
   	<if condition="$out203 || $out204 || $out401 || $out403 || $out404">
        <table cellpadding="2" cellspacing="2" width="100%" class="table table-hover">
          <tbody>
          	<if condition="$out203">
	            <tr><td>
	   					{$out203.code} - {$out203.info}
		        </td></tr>
			</if>
          	<if condition="$out204">
	            <tr><td>
	   					{$out204.code} - {$out204.info}
		        </td></tr>
			</if>
          	<if condition="$out401">
	            <tr><td>
	   					{$out401.code} - {$out401.info}
		        </td></tr>
			</if>
          	<if condition="$out403">
	            <tr><td>
	   					{$out403.code} - {$out403.info}
		        </td></tr>
			</if>
          	<if condition="$out404">
	            <tr><td>
	   					{$out404.code} - {$out404.info}
		        </td></tr>
			</if>
          </tbody>
        </table>
			<else />
            <div class="span13">
    <form method="post" class="form-horizontal J_ajaxForm" action="{:U('Fixtures/edit_post')}">
		<input type="hidden" name="matchid" value="{$matchid}" />
		<input type="hidden" name="teamid" value="{$teamid}" />
		<input type="hidden" name="userid" value="{$userid}" />
		<input type="hidden" name="playerid" value="{$player.id}" />
      <div class="table_list">
        <table cellpadding="2" cellspacing="2" width="100%">
          <tbody>
            <tr>
              <td style="width: 80px;">队员:</td>
              <td>
				<div class="emoji">
					<php>
					 	echo preg_replace_callback ( '/@E(.{6}==)/', function ($r) {
							return base64_decode ( $r [1] );
						}, $player['description']);
					</php>
				</div>
              </td>
            </tr>
            <tr>
              <td>进球数:</td>
              <td>
				<input type="button" value="─" class="btn btnclick" onClick="javascript:this.form.enter.value--;">
				<input type="text" readonly="readonly" name="enter" class="input inpwidth" value="{$player.goals}">
				<input type="button" value="+" class="btn btnclick" onClick="javascript:this.form.enter.value++;">
		      </td>
            </tr>
            <tr>
              <td>红牌数:</td>
              <td>
				<input type="button" value="─" class="btn btnclick" onClick="javascript:this.form.red.value--;">
				<input type="text" readonly="readonly" name="red" class="input inpwidth" value="{$player.red_card}">
				<input type="button" value="+" class="btn btnclick" onClick="javascript:this.form.red.value++;">
		      </td>
            </tr>
            <tr>
              <td>黄牌数:</td>
              <td>
				<input type="button" value="─" class="btn btnclick" onClick="javascript:this.form.yellow.value--;">
				<input type="text" readonly="readonly" name="yellow" class="input inpwidth" value="{$player.yellow_card}">
				<input type="button" value="+" class="btn btnclick" onClick="javascript:this.form.yellow.value++;">
		      </td>
            </tr>
          </tbody>
        </table>
      </div>
	  <div class="form-actions" style="padding-left: 50%;margin-left: -50px;">
        <button type="submit" class="btn btn-primary btn_submit  J_ajax_submit_btn">更新</button>
        <button type="button" class="btn" onclick="javascript:history.go(-1);">返回</button>
      </div>
    </form>
            </div>
		</if>

<script>
function stop(){
return false;
}
document.oncontextmenu=stop;
$('.emoji').emoji();
</script>
<script type="text/javascript" src="__ROOT__/statics/js/common.js"></script>
</body>
</html>